package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @Author: liangSY
 * @Date: 2021/6/24
 * @ClassName: PageDto
 * @Description: PageDto描述
 */
@Data
@ApiModel("分页参数")
public class PageDto {

    @Min(value = 0,message = "页码必须大于0")
    @ApiModelProperty(value = "页码",example = "1")
    private Integer pageNo;

    @Min(value = 0,message = "页大小必须大与0")
    @ApiModelProperty(value = "页大小",example = "10")
    private Integer pageSize;

}
